import Vue from 'vue'
import Router from 'vue-router'
import login from '@/pages/login'
import department from '@/pages/department/department'
import { layout } from '../layout'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/department',
      name: 'department',
      component: layout,
      children: [
        {
          path: '/department',
          component: department,
        }
      ]
    }
  ]
})
